package study.java.thread01;


/**
* @Name: MyThreadDemo
* @Description: 多线程执行类
* @Author: 李超	lc_jack@foxmail.com
* @CreateDate: 2017-1-8 下午8:06:27 
* @Version: V1.0
 */
public class MyThreadDemo {
	
	public static void main(String[] args) {
		//创建线程对象
//		MyThread thread01 = new MyThread() ;
//		MyThread thread02 = new MyThread() ;
//		thread01.setName("张三") ;
//		thread02.setName("李四") ;
//		thread01.start() ;
//		thread02.start() ;
		MyThread thread01 = new MyThread("张三") ;
		MyThread thread02 = new MyThread("李四") ;
		thread01.start() ;
		thread02.start() ;
		//获取当前正在执行的线程对象
		System.out.println(Thread.currentThread().getName());
	}

}
